package furnitures.parts 
{
	import flash.geom.Point;
	import utils.ArrayUtil;
	/**
	 * ...
	 * @author Dmitriy Gaiduk
	 */
	public class Foots 
	{
		public var positions:Vector.<Point>;
		
		public var decorPoints:Array;
		
		public function Foots() 
		{
			positions = new Vector.<Point>();
		}
		
		public function addPositionPoint(pos:Point):void
		{
			positions.push(pos.clone());
		}
		
		public function addPositionXY(x:Number, y:Number):void
		{
			positions.push(new Point(x, y));
		}
		
		public function clone():Foots
		{
			var cloneFoots:Foots = new Foots();
			
			for each(var p:Point in positions)
			{
				cloneFoots.addPositionXY(p.x, p.y);
			}
			
			cloneFoots.decorPoints = ArrayUtil.cloneShapeArray(this.decorPoints);
			
			return cloneFoots;
		}
		
	}

}